import request from '@/utils/request';
import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
// 新增告警配置

export const createalarmconfigList = (data) => postRequest('/production/alarm-config/create', data);

// 获取全部告警类型

export const getlarmconfigList = (params) => getRequest('/production/alarm-config/get-alarm-type', params);

// 获取告警配置

export const getAlarmconfiguration = (params) => getRequest('/production/alarm-config/get', params);

// 删除告警配置

export const deletAlarmconfiguration = (params) => deleteRequest('/production/alarm-config/delete', params);

// 获得告警配置分页
export const getAlarmconPaging = (params) => getRequest('/production/alarm-config/page', params);

// 更新告警配置
export const putAlarmconPaging = (data) => putRequest('/production/alarm-config/update', data);

// 更改告警配置状态

export const changealarmconfigList = (data) => postRequest('/production/alarm-config/update-audit-state', data);
